package com.handpay.zztong.hp.qualification.model;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

import java.util.List;

/**
 * @author sxshi on 2017/3/1.
 * @email:emotiona_xiaoshi@126.com
 * @describe：预览图片列表
 */

public class MerchantPicPreviewBean extends ResponseBean{

    /**
     * items : 0
     * list : [{"picId":"","picUrl":""}]
     */

    private int items;
    private List<ListBean> list;

    public int getItems() {
        return items;
    }

    public void setItems(int items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements android.os.Parcelable {
        /**
         * picId :
         * picUrl :
         */

        private String picId;
        private String picUrl;

        public String getPicId() {
            return picId;
        }

        public void setPicId(String picId) {
            this.picId = picId;
        }

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.picId);
            dest.writeString(this.picUrl);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.picId = in.readString();
            this.picUrl = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };

        @Override
        public String toString() {
            return "ListBean{" + "picId='" + picId + '\'' + ", picUrl='" + picUrl + '\'' + '}';
        }
    }

    public MerchantPicPreviewBean() {
    }

    @Override
    public String toString() {
        return "MerchantPicPreviewBean{" + "items=" + items + ", list=" + list + '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(this.items);
        dest.writeTypedList(this.list);
    }

    protected MerchantPicPreviewBean(Parcel in) {
        super(in);
        this.items = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Creator<MerchantPicPreviewBean> CREATOR = new Creator<MerchantPicPreviewBean>() {
        @Override
        public MerchantPicPreviewBean createFromParcel(Parcel source) {
            return new MerchantPicPreviewBean(source);
        }

        @Override
        public MerchantPicPreviewBean[] newArray(int size) {
            return new MerchantPicPreviewBean[size];
        }
    };
}
